package com.StringBuild01;

public class Demo03 {
    public static void main(String[] args) {
        //StringBuilder转换成String
        StringBuilder hello = new StringBuilder("hello");
        String string = hello.toString();
        System.out.println(string);


        //String转换成StringBuilder
        String s = "word";
        StringBuilder stringBuilder = new StringBuilder(s);
        System.out.println(stringBuilder);

    }
}
